import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
    {
        path: "/",
        component: () => import('@/pages/index'),
    },
    {
        path: "/mainPage",
        component: () => import('@/pages/mainPage'),
    },
    {
        path: "/result",
        component: () => import('@/pages/result'),
    },
    {
        path: "*",
        name: "all",
        redirect: "/"
    }
]


const router = new VueRouter({
    mode: "history",
    routes
})


export default router